<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class DomController</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/AbstractClass_logo.png"
														alt="Abstract Class"
														title="Abstract Class"
														style="vertical-align: middle"> DomController</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|													<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This library is not free software. You can not redistribute it and/or modify it in anyway!</p>
	<ul class="tags">
				<li><span class="field">abstract:</span> </li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_libs---DomMvc---DomController.class.php.html">/libs/DomMvc/DomController.class.php</a> (line <span class="field"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a28">28</a></span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em; white-space: nowrap">
						<img src="../media/images/Class.png"
								 alt=" class"
								 title=" class"
								 style="vertical-align: center"/>
						<a href="../DomMvc/DomCmsController.html">DomCmsController</a>
					</td>
					<td>
											This library is not free software. You can not redistribute it and/or modify it in anyway!
										</td>
				</tr>
							</table>
		</div>
	</div>



	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendants</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																																																															
				<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">DomController</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">String</span>&nbsp;<span class="var-name">$name</span>)
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">true</span>
										<a href="#auth" title="details" class="method-name">auth</a>
											([<span class="var-type">String</span>&nbsp;<span class="var-name">$resource</span> = <span class="var-default">''</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#error403" title="details" class="method-name">error403</a>
											(<span class="var-type">Int</span>&nbsp;<span class="var-name">$errorCode</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$errorMessage</span>)
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#error404" title="details" class="method-name">error404</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#finalize" title="details" class="method-name">finalize</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">String</span>
										<a href="#getCurrentUrl" title="details" class="method-name">getCurrentUrl</a>
											([<span class="var-type">String</span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">String</span>
										<a href="#getMediaUrl" title="details" class="method-name">getMediaUrl</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../DomMvc/DomSite.html">DomSite</a></span>
										<a href="#getSite" title="details" class="method-name">getSite</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">String</span>
										<a href="#getSiteUrl" title="details" class="method-name">getSiteUrl</a>
											([<span class="var-type">String</span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">String</span>
										<a href="#getTemplateUrl" title="details" class="method-name">getTemplateUrl</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">String</span>
										<a href="#getUrl" title="details" class="method-name">getUrl</a>
											([<span class="var-type">String</span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../DomAuth/DomUser.html">DomUser</a></span>
										<a href="#getUser" title="details" class="method-name">getUser</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../DomMvc/DomView.html">DomView</a></span>
										<a href="#getView" title="details" class="method-name">getView</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#goToSection" title="details" class="method-name">goToSection</a>
											([<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#goToUrl" title="details" class="method-name">goToUrl</a>
											([<span class="var-type">String</span>&nbsp;<span class="var-name">$url</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#index" title="details" class="method-name">index</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Boolean</span>
										<a href="#isAllowed" title="details" class="method-name">isAllowed</a>
											([<span class="var-type">String</span>&nbsp;<span class="var-name">$resource</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#loadController" title="details" class="method-name">loadController</a>
											(<span class="var-type">String</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$group</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#setup" title="details" class="method-name">setup</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#__get" title="details" class="method-name">__get</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$var</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a38">38</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">DomController</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">String</span>&nbsp;<span class="var-name">$name</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$name</span><span class="var-description">: Controller name.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodauth" id="auth"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">auth</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a204">204</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">true</span>
		<span class="method-name">
			auth
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$resource</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$resource</span><span class="var-description">: You can give multiple resources by using | or &amp;. A&amp;B means that both rights must be set, A|B means that A or B must be set. You can use both of them together.  If you want to test for value user A=my value&amp;B=my second value  Checks if user has allowed to view controller method. If not then NotAuthorizedException exception is raised.  If you give empty string it only checks that user is logged in and not blocked!  DomSite automatically cathes it and shows 403 error page.  Samples:  <div class="src-code"><ol><li><div class="src-line">&nbsp;<span class="src-comm">//&nbsp;allow&nbsp;admin</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomMvc/DomController.html#methodauth">auth</a><span class="src-sym">(</span><span class="src-str">'admin'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-comm">//&nbsp;allow&nbsp;admin&nbsp;or&nbsp;user</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomMvc/DomController.html#methodauth">auth</a><span class="src-sym">(</span><span class="src-str">'admin|user);</span></div></li>
<li><div class="src-line"><span class="src-str">&nbsp;//&nbsp;allow&nbsp;only&nbsp;users&nbsp;who&nbsp;are&nbsp;admin&nbsp;and&nbsp;owners</span></div></li>
<li><div class="src-line"><span class="src-str">&nbsp;$this-&gt;auth('</span><span class="src-id">admin</span><span class="src-sym">&amp;</span><span class="src-id">owner</span><span class="src-str">');</span></div></li>
<li><div class="src-line"><span class="src-str">&nbsp;//&nbsp;allow&nbsp;only&nbsp;users&nbsp;who'</span><span class="src-id">s&nbsp;admin&nbsp;value&nbsp;is&nbsp;</span><span class="src-num">3</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../DomMvc/DomController.html#methodauth">auth</a><span class="src-sym">(</span>'admin=3);</div></li>
</ol></div></span>			</li>
				</ul>
		
			
	</div>
<a name="methoderror403" id="error403"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">error403</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a131">131</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Forbidden error method.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			error403
		</span>
					(<span class="var-type">Int</span>&nbsp;<span class="var-name">$errorCode</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$errorMessage</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Int</span>
				<span class="var-name">$errorCode</span><span class="var-description">: [1-no user, 2-user blocked, 3-not authorized]</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$errorMessage</span>			</li>
				</ul>
		
			
	</div>
<a name="methoderror404" id="error404"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">error404</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a121">121</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Error method. This will be called when selected page doesn't exist.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			error404
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodfinalize" id="finalize"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">finalize</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a266">266</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This method will be called after controller controlling methods.</p>
<p class="description"><p>Good for making stuff after main controllers.  If this method returns &quot;false&quot; Index controller setup method will be called.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			finalize
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetCurrentUrl" id="getCurrentUrl"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getCurrentUrl</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a79">79</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> Current url (All GET params)</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			getCurrentUrl
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$add</span><span class="var-description">: Add extra arguments to url</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetMediaUrl" id="getMediaUrl"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getMediaUrl</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a92">92</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			getMediaUrl
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$add</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetSite" id="getSite"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getSite</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a98">98</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../DomMvc/DomSite.html">DomSite</a></span>
		<span class="method-name">
			getSite
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetSiteUrl" id="getSiteUrl"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getSiteUrl</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a72">72</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> Site url</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			getSiteUrl
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$add</span><span class="var-description">: Add extra arguments to url.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetTemplateUrl" id="getTemplateUrl"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getTemplateUrl</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a85">85</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			getTemplateUrl
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$add</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetUrl" id="getUrl"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getUrl</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a64">64</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> Current Controller url</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">String</span>
		<span class="method-name">
			getUrl
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$add</span><span class="var-description">: Add extra arguments to url.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetUser" id="getUser"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getUser</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a248">248</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> Current site user.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../DomAuth/DomUser.html">DomUser</a></span>
		<span class="method-name">
			getUser
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetView" id="getView"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getView</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a56">56</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> Site main renderer.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../DomMvc/DomView.html">DomView</a></span>
		<span class="method-name">
			getView
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgoToSection" id="goToSection"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">goToSection</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a144">144</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Goes to section. Same as self::goTo( self::getUrl('section-name') );</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			goToSection
		</span>
					([<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$add</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">unknown_type</span>
				<span class="var-name">$add</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgoToUrl" id="goToUrl"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">goToUrl</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a156">156</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Goes to url. If it is not started with http then site url is added as prefix.</p>
<p class="description"><p>If url is not added then user is directed to site url.</p><p>PHP script is killed when this method is called!</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			goToUrl
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$url</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$url</span>			</li>
				</ul>
		
			
	</div>
<a name="methodindex" id="index"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">index</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a116">116</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Index method. This will be called when nothing is selected.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			index
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodisAllowed" id="isAllowed"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">isAllowed</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a178">178</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Boolean</span>
		<span class="method-name">
			isAllowed
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$resource</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$resource</span><span class="var-description">: Checks if user has $resource allowed.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodloadController" id="loadController"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">loadController</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a109">109</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Load custom controller.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			loadController
		</span>
					(<span class="var-type">String</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$group</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$name</span><span class="var-description">: Controller name</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$group</span><span class="var-description">: Controller group</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetup" id="setup"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">setup</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a257">257</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This method will be called before controller controlling methods.</p>
<p class="description"><p>Good for making stuff for every page or authorization checks etc.  If this method returns &quot;false&quot; Index controller setup method will be called.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setup
		</span>
				()
			</div>
	
		
			
	</div>
<a name="method__get" id="__get"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">__get</span> (line <span class="line-number"><a href="../__filesource/fsource_DomMvc__libsDomMvcDomController.class.php.html#a42">42</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__get
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$var</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$var</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Fri, 24 Sep 2010 21:13:23 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>